﻿@model Tradukisto.Model.LocalItem

@using (Ajax.BeginForm("Edit", null, new AjaxOptions { HttpMethod = "POST", OnSuccess = "successEdit" }, new { id = "editForm" }))
{
    @Html.ValidationSummary(true)
    <div class="editHolder">
        <fieldset>
            <legend>Edit values</legend>

            <div class="editor-label">
                @Html.LabelFor(model => model.ControllerName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ControllerName)
                @Html.ValidationMessageFor(model => model.ControllerName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.ActionName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ActionName)
                @Html.ValidationMessageFor(model => model.ActionName)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Name)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Culture)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Culture)
                @Html.ValidationMessageFor(model => model.Culture)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Value)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Value)
                @Html.ValidationMessageFor(model => model.Value)
            </div>

            @Html.HiddenFor(model => model.Id)

            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>
    </div>
}
